﻿using System.ComponentModel;
using System.Data;
using System.Windows;
using System.Windows.Data;
namespace WPFExcelReport
{
    public partial class TPFVV08
    {

        public TPFVV08()
        {
            if (DesignerProperties.GetIsInDesignMode(this))
                return;
            MV = new VVVLIEF();
            this.DataContext = MV;
            InitializeComponent();
        } 
        public override void LOADBYAUF()
        {
            TBMain.Clear();
            if (ORDERNUM.Length < 8)
                return;
            dwData = TBMain.NewRow();
            dwData["VVMANDANT"] = app.Mandant;
            dwData["VVLIEFSCH"] = LIEFSCH;
            SResult = ((VVVLIEF)MV).QueryVVLIEF(dwData, 1);
            MergeData(SResult, true);
        } 
    }
}